﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pretext {
	/// <summary>
	/// The result object that is retuned by TokenMatchedDelegate methods to influence the behaviour of the Tokenizer.
	/// </summary>
	public class TokenMatchedResult {

		/// <summary>
		/// Creates an instance of the TokenMarchedResult class.
		/// </summary>
		/// <param name="createNewToken"></param>
		public TokenMatchedResult(bool createNewToken) {
			this.CreateNewToken = createNewToken;
		}

		/// <summary>
		/// Gets or sets whether the Tokenizer should create a new token after processing this token.
		/// </summary>
		public bool CreateNewToken { get; private set; }

		/// <summary>
		/// The default result object.
		/// </summary>
		public static TokenMatchedResult DefaultResult = new TokenMatchedResult(true);

	}
}